package com.study.tiger.demo1;


import java.util.ArrayList;
import java.util.List;

public class BuiderPatternDemo {

    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();

        /*Meal vegMeal = mealBuilder.prepareVegMeal();
        System.out.println("Veg Meal");
        vegMeal.showItems();
        System.out.println("Total Cost: " +vegMeal.getCost());

        Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
        System.out.println("Non-Veg Meal");
        nonVegMeal.showItems();
        System.out.println("Total Cost: " +nonVegMeal.getCost());*/

        List<Item> list = new ArrayList<>();
        list.add(new ChickenBurger());
        list.add(new VegBurger());
        list.add(new Coke());
        list.add(new Pepsi());
        Meal customMeal = mealBuilder.customMeal(list);
        customMeal.showItems();
        System.out.println("Total Cost: " +customMeal.getCost());
    }
}
